package com.servers;

import java.util.List;
import java.util.Map;

import com.entity.Cake;
import com.entity.CakeType;
import com.entity.ConditionCakeType;

public interface CakeServers {
		
	List<Cake> getAllCakes();
	List<Cake> findCakesLimit(int a,int b);
	List<Cake> getCakesByKind(int typeId);
	List<Cake> getCakeByTypeId(ConditionCakeType conditionCakeType);
	List<Cake> QuerySearchAllCake(String title);
	
	Cake getCakeByName(String cakeName);
	Cake  getCakeByCakeId(int cid);
	
	int addCake(Cake cake);
	
	int addCakeType(CakeType cakeType);
	

	Map<String, Object> getIndexJson(String key);
	/**
	 * 根据条件 口味 销量 价格 不同条件 得到 commodity的 json 数据
	 * @param conditionCakeType
	 * @return
	 */
	Map<String, Object> getCommodityMilkJson(ConditionCakeType conditionCakeType);
	Map<String, Object> getgoBuytodayJson(ConditionCakeType conditionCakeType,String typeList,String tuorli);
}

